﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Infrastructure.FileCenter
{
    public class FileCenterOption
    {
        private string _FileCenterUrl;

        public string AppId { get; set; }

        public string AccessKey { get; set; }

        public string FileCenterUrl
        {
            get
            {
                _FileCenterUrl = (_FileCenterUrl.StartsWith("http://") ? _FileCenterUrl : ("http://" + _FileCenterUrl));
                _FileCenterUrl = _FileCenterUrl.TrimEnd('/');
                return _FileCenterUrl;
            }
            set
            {
                _FileCenterUrl = value;
            }
        }

        public int MaxSizeMBPerFile { get; set; } = 50;


        public string GetMinioUrl { get; set; } = "api/File/GetMinioInfo";


        internal string MinioUrl { get; set; }

        internal string Username { get; set; }

        internal string Password { get; set; }
    }
}
